//
//  BQCaCheCell.m
//  BeeQuick
//
//  Created by 万伶童 on 16/11/21.
//  Copyright © 2016年 six_group. All rights reserved.
//

#import "BQCaCheCell.h"

@implementation BQCaCheCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self setupUI];
    }
    return self;
}

- (void)setupUI
{
        UILabel * chuckLabel = [[UILabel alloc]init];
        chuckLabel.text = @"清除缓存";
        UILabel * dataLabel = [[UILabel alloc]init];
    CGFloat arcNum = arc4random_uniform(30)*1.0;
    dataLabel.text = [NSString stringWithFormat:@"%.1fM",arcNum];
    
        [self.contentView addSubview:chuckLabel];
        [self.contentView addSubview:dataLabel];
    self.dataLabel = dataLabel;

        [chuckLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView);
            make.left.offset(14);
        }];
    
        [dataLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView);
            make.right.offset(-8);
        }];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
